<%@ Page Title="Rental Details" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" AutoEventWireup="true" 
	Inherits="System.Web.Mvc.ViewPage<GoldenBicycleCompany.Core.Rental>" %>
<%@ Import Namespace="GoldenBicycleCompany.Web.Controllers" %>

<asp:Content ContentPlaceHolderID="MainContentPlaceHolder" runat="server">

    <h1>Rental Details</h1>

    <ul>
		<li>
			<label for="Rental_Customer">Customer:</label>
            <span id="Rental_Customer"><%= Server.HtmlEncode(ViewData.Model.Customer.ToString()) %></span>
		</li>
		<li>
			<label for="Rental_Bicycles">Bicycles:</label>
            <span id="Rental_Bicycles"><%= Server.HtmlEncode(ViewData.Model.Bicycles.ToString()) %></span>
		</li>
		<li>
			<label for="Rental_ActualDropOffDateTime">ActualDropOffDateTime:</label>
            <span id="Rental_ActualDropOffDateTime"><%= Server.HtmlEncode(ViewData.Model.ActualDropOffDateTime.ToString()) %></span>
		</li>
		<li>
			<label for="Rental_PickUpDateTime">PickUpDateTime:</label>
            <span id="Rental_PickUpDateTime"><%= Server.HtmlEncode(ViewData.Model.PickUpDateTime.ToString()) %></span>
		</li>
		<li>
			<label for="Rental_RequestedDropOffDateTime">RequestedDropOffDateTime:</label>
            <span id="Rental_RequestedDropOffDateTime"><%= Server.HtmlEncode(ViewData.Model.RequestedDropOffDateTime.ToString()) %></span>
		</li>
		<li>
			<label for="Rental_IsLate">IsLate:</label>
            <span id="Rental_IsLate"><%= Server.HtmlEncode(ViewData.Model.IsLate.ToString()) %></span>
		</li>
		<li>
			<label for="Rental_NotifiedWillBeLate">NotifiedWillBeLate:</label>
            <span id="Rental_NotifiedWillBeLate"><%= Server.HtmlEncode(ViewData.Model.NotifiedWillBeLate.ToString()) %></span>
		</li>
	    <li class="buttons">
            <%= Html.Button("btnBack", "Back", HtmlButtonType.Button, 
                "window.location.href = '" + Html.BuildUrlFromExpressionForAreas<RentalsController>(c => c.Index()) + "';") %>
        </li>
	</ul>

</asp:Content>
